package com.ruan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.common.Result;
import com.ruan.pojo.*;

import java.util.List;

public interface EmployeeLeaveService extends IService<EmployeeLeave> {

//    List<EmployeeLeave> selectLeaveDetailByPhoneAndDate(LTODetailCondition LTODetailCondition);

    List<EmployeeLeave> getAudit();

    void agreed(Integer id, Integer adminId);

    void refuse(Integer id, Integer adminId);

    List<LeaveType> getUsingLeaveType();

    Result appForLeave(EmployeeLeave employeeLeave);

    IPage<EmployeeLeave> getSelfLeave(int currentPage, int pageSize, QuerySelfAttendanceCondition querySelfAttendanceCondition);

    void cancelLeave(Integer id);

    void addLeave(Integer adminId, EmployeeLeave employeeLeave);
}
